#ifndef __TWINDOW_H__
#define __TWINDOW_H__

#include <gtk/gtk.h>

GdkPixmap *load_pixmap (GtkWidget *widget,gchar *filename);

class tWindow {
	public:
		tWindow();
		~tWindow();
		gboolean create (const char *title,const char *pixmap_name);
		gboolean set_twindow_bg(const char *filename,GtkWidget *widget);
		inline void clear_bg (void) { 
			if (bg) g_object_unref(bg); 
			bg = NULL; 
		}
		inline GtkWidget *get_fixed (void) 	{ return fixed; }
		inline GtkWidget *get_window (void)	{ return window; }
	private:
		GtkWidget *fixed,*window;
		GdkPixmap *bg; //background image
};

#endif
